package com.itany.ums.dao;

import java.util.List;

import com.itany.ums.entity.User;

public interface UserDao {

	User selectByLoginnameAndPassword(String loginname, String password);

	User selectByUsername(String username);

	User selectByPhone(String phone);

	User selectByEmail(String email);

	void saveUser(User u);

	User selectById(long id);

	void updatePwd(long id, String newPwd);

	void updateUsername(long id, String username);

	List<User> selectByRole(int roleCode);

	void updateStateById(long id, int stateCode);
}
